package com.shop.admin.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shop.admin.dao.AdminDAO;
import com.shop.admin.vo.AdminVO;

@Service
public class AdminServiceImpl implements AdminService {

	@Autowired
	private AdminDAO dao;

	@Override
	public List<AdminVO.AdminMemberItem> listMember() {
		
		return dao.listMember();
	}
	@Override
	public int isUserCnt(String id, String pw) {
		
		return dao.isUserCnt(id, pw);
	}
	
	@Override
	public int addMember(AdminVO.AdminMemberItem memberItem) {
		// TODO Auto-generated method stub
		return dao.addMember(memberItem);
	}
	
	@Override
	public AdminVO.AdminMemberItem getMember(String seq) {
		//TODO Auto-generated method stub
		
		return dao.getMember(seq);
	}
	
	@Override
	public int updateMember(AdminVO.AdminMemberItem memberItem) {
		return dao.updateMember(memberItem);
	}
	
	@Override
	public int deleteMember(String seq) {
		return dao.deleteMember(seq);
	}

}
